package com.reflection;

public class Person extends Biology{

    //子类的公开的属性
    public int id;
    public String name;

    //子类的私有属性
    private String gender;

    //子类公开的构造方法
    public Person() {

    }

    public Person(int id, String name) {
        this.id = id;
        this.name = name;
    }

    //子类私有的构造方法
    private Person(int id, String name, String gender) {
        this.id = id;
        this.name = name;
        this.gender = gender;
    }

    //子类公开的普通方法
    public void walk(){
        System.out.println("我是人类，可以直立行走");
    }

    //子类私有的普通方法
    private String jump(int height){
        return "我是人类，我可以跳"+height+"米";
    }

    //当前类的内部类
    public static class Tools{

    }

    public class Food{

    }
}
